package com.nbjtjc.safe.service.safe;

import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.mapper.safe.RiskMarkMapper;
import com.nbjtjc.safe.model.safe.RiskMark;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RiskMarkServiceImpl {

    @Autowired
    private RiskMarkMapper riskMarkMapper;

    public Result find(RiskMark riskMark){
        Result result=new Result();
        List<RiskMark> riskMarks=riskMarkMapper.search(riskMark);
        result.setData(riskMarks);
        return result;
    }
}
